#include "Point.h"

Point::Point(float x, float y)
{
	mX = x;
	mY = y;
}

Point::~Point()
{
}

Point& Point::operator+(const Point& point)
{
	return Point((mX + point.mX), (mY + point.mY));
}
Point& Point::operator-(const Point& point)
{
	return Point((mX - point.mX), (mY - point.mY));
}
Point& Point::operator+=(const Point& point)
{
	mX += point.mX;
	mY += point.mY;
	return *this;
}
Point& Point::operator*=(const Point& point)
{
	mX *= point.mX;
	mY *= point.mY;
	return *this;
}
Point& Point::operator=(const Point& point)
{
	mX = point.mX;
	mX = point.mY;
	return *this;
}
bool Point::operator==(const Point& point)
{
	return (mX == point.mX && mY == point.mY);
}